//
//  PKLiveMCoinButton.swift
//  Panku
//
//  Created by mac on 2017/2/14.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit

class PKLiveMCoinButton: PKBaseButton {

    //MARK: - properties
    var balance:Int = 0{
        didSet{
            let title = "M币" + String(balance)
            self.setTitle(title, for: .normal)
        }
    }
    
    override func setupButton() {
        self.frame = CGRect(x: 0, y: 0, width: 100, height: 44)
        self.layer.cornerRadius = 22
        self.layer.masksToBounds = true
        
        self.backgroundColor = UIColor.black
    }

}
